package com.dang.alex.service.Imp;

import java.util.List;

import com.dang.alex.dao.DAOFactory;
import com.dang.alex.model.Order;
import com.dang.alex.model.ReceiveAddress;
import com.dang.alex.service.ReceiveAddressService;

public class ReceiveAddressServiceImp implements ReceiveAddressService {
	
	public ReceiveAddress findById(int id) throws Exception {
		return DAOFactory.getReceiveAddressDAO().findById(id);
	}
	
	public void sava(ReceiveAddress addr) throws Exception {
		DAOFactory.getReceiveAddressDAO().sava(addr);
	}
	
	public List<ReceiveAddress> findByUserId(int userId) throws Exception {
		return DAOFactory.getReceiveAddressDAO().findByUserId(userId);
	}
	
}
